package com.amazon.inapp.purchasing;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

public final class ItemDataResponse
{
  private static final String TO_STRING_FORMAT = "(%s, requestId: \"%s\", itemDataRequestStatus: \"%s\", unavailableSkus: %s, itemData: %s)";
  private final Map<String, Item> _itemData;
  private final ItemDataRequestStatus _itemDataRequestStatus;
  private final String _requestId;
  private final Set<String> _unavailableSkus;

  ItemDataResponse(String paramString, Set<String> paramSet, ItemDataRequestStatus paramItemDataRequestStatus, Map<String, Item> paramMap)
  {
    Validator.validateNotNull(paramString, "requestId");
    Validator.validateNotNull(paramItemDataRequestStatus, "itemDataRequestStatus");
    if (ItemDataRequestStatus.SUCCESSFUL_WITH_UNAVAILABLE_SKUS == paramItemDataRequestStatus)
    {
      Validator.validateNotNull(paramSet, "unavailableSkus");
      Validator.validateNotEmpty(paramSet, "unavailableSkus");
    }
    if (ItemDataRequestStatus.SUCCESSFUL == paramItemDataRequestStatus)
    {
      Validator.validateNotNull(paramMap, "itemData");
      Validator.validateNotEmpty(paramMap.entrySet(), "itemData");
    }
    this._requestId = paramString;
    this._itemDataRequestStatus = paramItemDataRequestStatus;
    if (paramSet != null)
    {
      this._unavailableSkus = paramSet;
      if (paramMap == null)
        break label103;
    }
    while (true)
    {
      this._itemData = paramMap;
      return;
      paramSet = new HashSet();
      break;
      label103: paramMap = new HashMap();
    }
  }

  public Map<String, Item> getItemData()
  {
    return this._itemData;
  }

  public ItemDataRequestStatus getItemDataRequestStatus()
  {
    return this._itemDataRequestStatus;
  }

  public String getRequestId()
  {
    return this._requestId;
  }

  public Set<String> getUnavailableSkus()
  {
    return this._unavailableSkus;
  }

  public String toString()
  {
    Object[] arrayOfObject = new Object[5];
    arrayOfObject[0] = super.toString();
    arrayOfObject[1] = this._requestId;
    arrayOfObject[2] = this._itemDataRequestStatus;
    arrayOfObject[3] = this._unavailableSkus;
    arrayOfObject[4] = this._itemData;
    return String.format("(%s, requestId: \"%s\", itemDataRequestStatus: \"%s\", unavailableSkus: %s, itemData: %s)", arrayOfObject);
  }

  public static enum ItemDataRequestStatus
  {
    static
    {
      FAILED = new ItemDataRequestStatus("FAILED", 1);
      SUCCESSFUL_WITH_UNAVAILABLE_SKUS = new ItemDataRequestStatus("SUCCESSFUL_WITH_UNAVAILABLE_SKUS", 2);
      ItemDataRequestStatus[] arrayOfItemDataRequestStatus = new ItemDataRequestStatus[3];
      arrayOfItemDataRequestStatus[0] = SUCCESSFUL;
      arrayOfItemDataRequestStatus[1] = FAILED;
      arrayOfItemDataRequestStatus[2] = SUCCESSFUL_WITH_UNAVAILABLE_SKUS;
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.amazon.inapp.purchasing.ItemDataResponse
 * JD-Core Version:    0.6.2
 */